package com.eastfair.projectcore.api;

import com.eastfair.annotation.model.LoadService;
import com.eastfair.core.base.R;
import org.apache.commons.lang3.StringUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;
import java.util.Map;
import java.util.Set;

/**
 * @ClassName DictFeign
 * @Description TODO
 * @Author yuwx
 * @Date 2021/12/6 13:27
 * @Version 1.0
 **/
@FeignClient(value = "project-core/dictionary")
public interface DictionaryFeign extends LoadService {
    @Override
    @GetMapping(value = "/findByIds")
    Map<Serializable, Object> findByIds(@RequestParam(value = "ids") Set<Serializable> ids);

    @Override
    @GetMapping(value = "/findNameByIds")
    Map<Serializable, Object> findNameByIds(@RequestParam(value = "ids") Set<Serializable> ids);


}
